package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 学生学籍表
 *
 * @author wangtao
 * @since 2022-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_student_status")
@Schema(name = "EduStudentStatus", title = "学生学籍表", description = "学生学籍表实体类")
public class EduStudentStatus extends Model<EduStudentStatus> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "studentStatusId", title = "学籍id")
    @TableId(value = "student_status_id", type = IdType.ASSIGN_ID)
    private String studentStatusId;

    @Schema(name = "schoolId", title = "学校id")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "schoolName", title = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "idcard", title = "证件号码")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "fullName", title = "姓名")
    @TableField(value = "full_name")
    private String fullName;

    @Schema(name = "fatherName", title = "父亲姓名")
    @TableField(value = "father_name")
    private String fatherName;

    @Schema(name = "fatherCardType", title = "父亲证件类型")
    @TableField(value = "father_card_type")
    private String fatherCardType;

    @Schema(name = "fatherIdcard", title = "父亲身份证")
    @TableField(value = "father_idcard")
    private String fatherIdcard;

    @Schema(name = "motherName", title = "母亲姓名")
    @TableField(value = "mother_name")
    private String motherName;

    @Schema(name = "motherCardType", title = "母亲证件类型")
    @TableField(value = "mother_card_type")
    private String motherCardType;

    @Schema(name = "motherIdcard", title = "母亲身份证")
    @TableField(value = "mother_idcard")
    private String motherIdcard;

    @Schema(name = "remarks", title = "学籍变更备注")
    @TableField(value = "remarks")
    private String remarks;

    @Schema(name = "year", title = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Override
    public Serializable pkVal() {
        return this.studentStatusId;
    }
}
